// 播放量格式化
export function formatPlays(plays: number): string {
  let endPlay = 0
  let unit = ''
  if (plays >= 10000) {
    endPlay = Number((plays / 10000).toFixed(0))
    unit = '万'
  } else {
    endPlay = plays
  }
  if (endPlay >= 10000) {
    endPlay = Number((endPlay / 10000).toFixed(0))
    unit = '亿'
  }
  return endPlay + unit
}
